import cv2 as cv

filename = r'D:\data\lena.jpg'
img = cv.imread(filename)

imgGauss = cv.GaussianBlur(img, (5,5), 0)
image1 = cv.resize(img, (int(img.shape[1]/2), int(img.shape[0]/2)))
image2 = cv.pyrDown(image1)
gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)
_,gray1 = cv.threshold(gray, 120, 0xff, cv.THRESH_BINARY)

hsv = cv.cvtColor(img, cv.COLOR_BGR2HSV)

cv.imshow("Hello World", img)
cv.imshow("Hue", hsv[:,:,0])
cv.imshow("Saturation",hsv[:,:,1])
cv.imshow("Value",hsv[:,:,2])

cv.imshow("Red",img[:,:,2])
cv.imshow("Green",img[:,:,1])
cv.imshow("Blue",img[:,:,0])

#cv.imshow("Gaussian filtered image", imgGauss)
#cv.imshow("half size", image1)
#cv.imshow("quarter size", image2)
#cv.imshow("gray", gray)
#cv.imshow("threshold image", gray1)

cv.waitKey()
cv.destroyAllWindows()